﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web.Security;
namespace OnlineTestCOMMON
{
    /// <summary>
    /// Encrypt 加密解密算法
    /// </summary>
    public class Encrypt
    {
        #region
        /// <summary>
        /// MD5加密字符串
        /// </summary>
        /// <param name="source">源字符串</param>
        /// <returns>加密后的字符串</returns>
        public static string MD5(string source)
        {
            return FormsAuthentication.HashPasswordForStoringInConfigFile(source, "MD5");
        }
        #endregion
    }
}
